package com.yutao;

/**
 * @author : 余涛
 * @version : 1.0
 * @date : 2022/9/13 19:56
 */
public class Multiply extends AbstractCalculator implements  ICalculator {
    @Override
    public int calculate(String exp) {
        int arrayInt[] = split(exp, "\\*");
        return arrayInt[0] * arrayInt[1];
    }
}
